package p270jp.pxv.android.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ObservableField;
import p056bp.Duration;
import p270jp.pxv.android.R;
import p314lg.ViewLiveCounterBarBinding;

/* renamed from: jp.pxv.android.view.LiveCounterBarView */
/* loaded from: classes2.dex */
public class LiveCounterBarView extends FrameLayout {

    /* renamed from: a */
    public ViewLiveCounterBarBinding f19546a;

    /* renamed from: b */
    public ObservableField<Duration> f19547b = new ObservableField<>();

    /* renamed from: c */
    public ObservableField<Long> f19548c = new ObservableField<>(0L);

    /* renamed from: d */
    public ObservableField<Long> f19549d = new ObservableField<>(0L);

    /* renamed from: e */
    public ObservableField<Long> f19550e = new ObservableField<>(0L);

    /* renamed from: f */
    public ObservableField<Long> f19551f = new ObservableField<>(0L);

    public LiveCounterBarView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        ViewLiveCounterBarBinding r9Var = (ViewLiveCounterBarBinding) DataBindingUtil.m11370c(LayoutInflater.from(getContext()), R.layout.view_live_counter_bar, this, true);
        this.f19546a = r9Var;
        r9Var.mo3776C(this.f19547b);
        this.f19546a.mo3773z(this.f19548c);
        this.f19546a.mo3774G(this.f19549d);
        this.f19546a.mo3775E(this.f19550e);
        this.f19546a.mo3777A(this.f19551f);
    }

    public void setAudienceCount(long j) {
        this.f19548c.m11365f(Long.valueOf(j));
    }

    public void setChatCount(long j) {
        this.f19551f.m11365f(Long.valueOf(j));
    }

    /* JADX WARN: Multi-variable type inference failed */
    public void setElapsedDuration(Duration eVar) {
        ObservableField<Duration> iVar = this.f19547b;
        if (eVar != iVar.f2685b) {
            iVar.f2685b = eVar;
            iVar.m11381c();
        }
    }

    public void setHeartCount(long j) {
        this.f19550e.m11365f(Long.valueOf(j));
    }

    public void setTotalAudienceCount(long j) {
        this.f19549d.m11365f(Long.valueOf(j));
    }
}
